package com.advbean.music;

public class BlackDisc implements CompactDisc {
    private String title;
    private String artist;

    private Integer dbCount;

    @Override
    public void play() {
        System.out.println(toString());
    }

    public BlackDisc() {
    }

    public BlackDisc(String title, String artist, Integer dbCount) {
        this.title = title;
        this.artist = artist;
        this.dbCount = dbCount;
    }

    public Integer getDbCount() {
        return dbCount;
    }

    public void setDbCount(Integer dbCount) {
        this.dbCount = dbCount;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getArtist() {
        return artist;
    }

    public void setArtist(String artist) {
        this.artist = artist;
    }

    @Override
    public String toString() {
        return "BlackDisc{" +
                "title='" + title + '\'' +
                ", artist='" + artist + '\'' +
                ", dbCount=" + dbCount +
                '}';
    }
}
